import request from '../../config/request'

// 系查询
export const loadAdminFaculties = function (params = {}) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'get',
    params: params,
  })
}

// 系删除
export const removeAdminFaculties = function (department_id = '') {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'delete',
    params: {
      department_id: department_id,
    },
  })
}

// 系添加
export const insertNewFaculties = function (data = {}) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'post',
    data: data,
  })
}

// 系更新
export const updateFacultiesById = function (data = {}) {
  return request({
    url: '/api/v1/admin/faculties',
    method: 'put',
    data: data,
  })
}
